import { createApp } from 'vue'
import App from '@/App.vue'
//引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置element-plus国际化
//@ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入模板的全局样式
import '@/styles/index.scss'
//引入模板的全局样式
import '@/styles/index.scss'
//svg插件需要配置代码
import 'virtual:svg-icons-register'
//引入自定义插件对象:注册整个项目全局组件
import globalComponent from '@/components'
//引入路由
import router from './router'
//引入仓库
import pinia from './store'

const app = createApp(App)

// 调试Pinia
console.log('Pinia initialized:', pinia)

app.use(ElementPlus,{
    locale:zhCn
})
app.use(globalComponent)
app.use(router)
app.use(pinia)







//应用挂载
app.mount('#app')
